

<h1>物件列表</h1>

<table>
  <tr>
    <th>名称</th>
    <th>所有者</th>
    <th>描述</th>
  </tr>

<% @things.each do |thing| %>

 <tr>
    <td><%=h thing.title %></td>
    <td><%=h thing.owner %></td>
    <td><%=h thing.description %></td>
    <td><%= link_to '查看', thing %></td>
    <td><%= link_to '编辑', edit_thing_path(thing) %></td>
    <td><%= link_to '删除', thing, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />
<%= link_to 'New thing', new_thing_path %>


